package com.itheima.service;

import com.itheima.bean.Teacher;
import com.itheima.mapper.TeacherIf;
import com.itheima.utils.Utils;

import java.io.IOException;
import java.util.List;

public class TeachertoStudent_Service {
    public List<Teacher> selectAll() throws Exception {
        TeacherIf mapper = Utils.getSqlSession().getMapper(TeacherIf.class);
        List<Teacher> teachers = mapper.selectAll();
        return teachers;
    }
}
